package com.cci.kangdao.wechatOrder.service;

import com.cci.kangdao.wechatOrder.dto.request.UserCheckRequest;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @description: 用户信息校验服务
 * @author: zyf
 * @create: 2021-03-12
 */
public interface IUserCheckService {
    /**
     * 
     * @param userCheckRequest
     * @param request
     * @param response
     * @return
     * @throws Exception
     */
    ModelAndView checkUser(UserCheckRequest userCheckRequest, HttpServletRequest request,
                           HttpServletResponse response)throws Exception;


    //外部用户注册接口
    ModelAndView outsideUserRegister(Map<String, Object> map);

    /**
     * 刷新token
     *
     * @param request
     * @param response
     */
    void refreshToken(HttpServletRequest request,
                      HttpServletResponse response) throws Exception;


    /**
     * 微信-注册前校验
     */
    void checkPhoneBeforeRegistWX(Map<String, Object> map);

    /**
     * 微信-退出
     */
    void weChatLoginOut(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
